#if !defined(AFX_DBCOMBOBOX_H__38F1DC43_8EF3_4EC3_9F8A_C0DA1C1EB729__INCLUDED_)
#define AFX_DBCOMBOBOX_H__38F1DC43_8EF3_4EC3_9F8A_C0DA1C1EB729__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define DA_NORMAL    0
#define DA_SELECT    1

// DBComboBox.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDBComboBox window

class CDBComboBox : public CComboBox
{
// Construction
public:
	CDBComboBox();


protected:	

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDBComboBox)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	
	virtual ~CDBComboBox();

	// Generated message map functions
protected:
	//{{AFX_MSG(CDBComboBox)
	afx_msg void OnPaint();
	afx_msg void OnCloseup();
	afx_msg void OnDropdown();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:

	void GetArrowRect(CRect *pRect);
	void DrawArrow(CDC *pDC, UINT style);

public:

private:

	BOOL m_bSelectArrow;

	COLORREF m_clrWindow;
	COLORREF m_clrButton;
	COLORREF m_clrBorder;

	COLORREF m_clrArrowNormal;
	COLORREF m_clrArrowSel;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DBCOMBOBOX_H__38F1DC43_8EF3_4EC3_9F8A_C0DA1C1EB729__INCLUDED_)
